package com.itheima.pojo;

import java.io.Serializable;
import java.util.Date;

public class StockBack implements Serializable {
    private String order_id;        //订单id
    private String sku_id;          //SKU的id
    private Integer num;            //回滚数量
    private String status;          //回滚状态
    private Date create_time;       //创建时间
    private Date back_time;         //回滚时间

    private Sku sku;
    public StockBack() {
    }

    public StockBack(String order_id, String sku_id, Integer num, String status, Date create_time, Date back_time) {
        this.order_id = order_id;
        this.sku_id = sku_id;
        this.num = num;
        this.status = status;
        this.create_time = create_time;
        this.back_time = back_time;
    }

    public StockBack(String order_id, String sku_id, Integer num, String status, Date create_time, Date back_time, Sku sku) {
        this.order_id = order_id;
        this.sku_id = sku_id;
        this.num = num;
        this.status = status;
        this.create_time = create_time;
        this.back_time = back_time;
        this.sku = sku;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getSku_id() {
        return sku_id;
    }

    public void setSku_id(String sku_id) {
        this.sku_id = sku_id;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getBack_time() {
        return back_time;
    }

    public void setBack_time(Date back_time) {
        this.back_time = back_time;
    }

    @Override
    public String toString() {
        return "StockBack{" +
                "order_id='" + order_id + '\'' +
                ", sku_id='" + sku_id + '\'' +
                ", num=" + num +
                ", status='" + status + '\'' +
                ", create_time=" + create_time +
                ", back_time=" + back_time +
                '}';
    }
}
